package com.hc.bean;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
import java.util.List;

public class SysUserBean {

   private Integer user_id;//	bigint
    private String  username;//	varchar(50)
    private String  password;//	varchar(100)
    private String   email;//	varchar(100)
    private String   mobile;//	varchar(100)
    private Integer   status;//	tinyint
    private Integer  create_user_id	;//bigint

    private List<Integer> selectedRoleId; //用于存储前端传递过来的多个角色id

    public List<Integer> getSelectedRoleId() {
        return selectedRoleId;
    }

    public void setSelectedRoleId(List<Integer> selectedRoleId) {
        this.selectedRoleId = selectedRoleId;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") //当该对象（"yyyy-MM-dd"）被spring转换为 json字符串时，spring会根据该注解将日期类型转换注解指定的格式
    private Date create_time;//	datetime  //Date -->SimpleDateFormat("yyy-MM-dd")--->formate(date)
    private Integer  shop_id;//	bigint

    public Integer getUser_id() {
        return user_id;
    }


    @Override
    public String toString() {
        return "SysUserBean{" +
                "user_id=" + user_id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", email='" + email + '\'' +
                ", mobile='" + mobile + '\'' +
                ", status=" + status +
                ", create_user_id=" + create_user_id +
                ", create_time=" + create_time +
                ", shop_id=" + shop_id +
                '}';
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getCreate_user_id() {
        return create_user_id;
    }

    public void setCreate_user_id(Integer create_user_id) {
        this.create_user_id = create_user_id;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Integer getShop_id() {
        return shop_id;
    }

    public void setShop_id(Integer shop_id) {
        this.shop_id = shop_id;
    }
}
